package cn.craftyun.yunexam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class User {
    @NotNull
    @TableId(type = IdType.AUTO)
    private Long id;
    @NotEmpty
    private String stuNumber;
    @NotEmpty
    private String name;
    @NotEmpty
    private String password;
}
